package demo13;

class OuterClass{

    public void fun(){
        class InnerClass{
            public int data = 1;
            public void func(){
                System.out.println("局部内部类");
            }
        }
        InnerClass innerClass = new InnerClass();
        innerClass.func();
    }
}
public class Test {
    public static void main(String[] args) {
        OuterClass outerClass = new OuterClass();
        outerClass.fun();
    }
}
